<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<?php
			function Grade($score)
			{
				if($score>=90)
				{
					$grade="excellent";
				}
				else if($score>=60)
				{
					$grade="passed";
				}
				else{
					$grade="failed";
				}
				return $grade;
			}
			$score = 100;
			$grade = Grade($score);
			
			echo "百分制成绩：".$score."<br>";
			echo "等级字符制成绩：".$grade;
		?>
	</body>
</html>